// EditPage.h
 
#ifndef __EDIT_PAGE_H
#define __EDIT_PAGE_H

#include "resource.h"


class CEditPage: public CPropertyPageImpl<CEditPage>
{
public:
	enum { IDD = IDD_EDIT};

	BEGIN_MSG_MAP(CEditPage)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(IDC_EDIT_BUTTON_EDITOR, OnSetPathEditor)
		COMMAND_ID_HANDLER(IDC_EDIT_BUTTON_DIFF, OnSetPathDiff)
		COMMAND_ID_HANDLER(IDC_EDIT_EDIT_EDITOR, OnEditPath)
		COMMAND_ID_HANDLER(IDC_EDIT_EDIT_DIFF, OnEditPath)
		CHAIN_MSG_MAP(CPropertyPageImpl<CEditPage>)
	END_MSG_MAP()

	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);

private:
  CEdit _editor;
  CEdit _diff;
public:
  void OnHelp();
  int OnApply();
  
  LRESULT OnSetPathEditor(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
  LRESULT OnSetPathDiff(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);

  LRESULT OnEditPath(WORD wNotifyCode, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
  
};

#endif
